package com.tonglin.red.service;

import com.tonglin.red.entity.vo.RedPacketDto;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;


public interface IRedService {
    //记录发红包时红包的全局全局唯一标识符、随机金额列表和红包个数等信息入数据库
    void recordRedPacket(RedPacketDto dto, String redId, List<Integer> list) throws Exception;

    //记录抢红包时用户抢到的红包金额等信息入数据库
    void  recordRobRedPacket(Integer userId, String redId, BigDecimal amount) throws Exception;

}
